package com.tianhao.luo.nouse.plant;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Date 2019/12/9
 * @Author tianhao.luo
 * @Description
 */
public class Wall implements Plant {
    private static final Logger LOGGER = LoggerFactory.getLogger(Wall.class);
    private String name;

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void fight(String name) {
        LOGGER.info("我{}阻止子弹",name);
    }

    @Override
    public String getName() {
        return this.name;
    }
}
